.totalPage_couponCenter {
  width: 100%;
  height: 100vh;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  .topPage {
    flex-shrink: 0;
    width: 100%;
    height: 370px;
    background: url('../images/couponCenter/bgTop.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    box-sizing: border-box;
    .topBarLine {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      &.H5 {
        justify-content: center;
      }
      .left {
        margin-left: 20px;
        width: 50px;
        height: 48px;
        display: flex;
        justify-content: center;
        align-items: center;
        .back {
          width: 24px;
          height: 48px;
        }
      }
      .center {
        width: 154px;
        height: 34px;
      }
      .right {
        margin-right: 20px;
        width: 50px;
        height: 48px;
      }
      .topBar {
        width: 154px;
        height: 34px;
      }
    }
  }
  .stricky {
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .fontPage {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 5;
    background: #f5f5f5;
    .contentPage {
      width: 100%;
      height: 100%;
      overflow-y: scroll;
    }
  }
}

.couponCenter {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  &.h5Position {
    background-position: 0 370px;
  }

  .coupon-tab {
    margin: 30px 25px 0px 24px;
    width: 701px;
    height: 64px;
    border-radius: 41px;

    display: none;
    flex-direction: row;
    align-items: center;

    &.showCouponTab {
      display: flex;
    }

    .item {
      flex: 1;
      height: 56px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 40px;
      background: none;
      .top {
        font-size: 30px;
        font-weight: 400;
        color: #ffffff;
      }
      &.active {
        background: #ffffff;
        border: 4px solid #6D86C4;
        .top {
          font-weight: bold;
        }
      }
    }
  }

  .coupon-wrap {
    width: 100%;
  }

  .coupon-item-shop {
    margin: 24px auto 0;
    width: 702px;
    height: 250px;
    display: flex;
    position: relative;
    background-image: url('../images/couponCenter/cpBg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
     &:last-child {
       margin-bottom: 24px;
     }
     .gotFlag {
        position: absolute;
        top: -12px;
        right: 141px;
        width: 112px;
        height: 105px;
      }
     .left {
       width: 506px;
       height: 100%;
       display: flex;
       flex-direction: column;
       box-sizing: border-box;
       padding: 21px 30px 0;
       .line {
        display: flex;
        align-items: center;
        height: 52px;
        .hot {
          width: 45px;
          height: 52px;
          margin-right: 10px;
        }
        .title {
          width: 380px;
          font-size: 24px;
          font-weight: bold;
          color: rgba(0, 0, 0, 0.85);
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
       }
       .pros {
         margin-top: 17px;
         height: 160px;
         display: flex;
         .product {
           width: 120px;
           height: 100%;
           margin-right: 20px;
           display: flex;
           flex-direction: column;
           align-items: center;
           &:last-child {
             margin-right: 0;
           }
           .img {
             width: 120px;
             height: 120px;
             border-radius: 8px;
           }
           .price {
            height: 28px;
            font-size: 20px;
            font-weight: 400;
            color: #7F7F7F;
            line-height: 28px;
           }
         }
       }
     }
     .right {
       width: 195px;
       height: 100%;
       display: flex;
       flex-direction: column;
       align-items: center;
       .less {
         margin-top: 42px;
        height: 55px;
        display: flex;
        align-items: center;
        font-size: 50px;
        font-weight: bold;
        letter-spacing: -2px;
        .unit {
          height: 100%;
          display: flex;
          align-items: flex-end;
          font-size: 27px;
        }
       }
       .condition {
        font-size: 24px;
        font-weight: 400;
        line-height: 37px;
       }
       .btn {
        margin-top: 29px;
        width: 140px;
        height: 50px;
        border-radius: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        font-weight: bold;
        color: #FFFFFF;
        &.stock {
          background: rgba(0, 0, 0, 0.25) !important;
        }
        &.has {
          background: unset !important;
          border: 1px solid #ff8d1b;
          border-radius: 27px;
        }
       }
     }
  }

  .coupon-item-takeout {
    margin: 24px auto 0;
    width: 700px;
    height: 220px;
    display: flex;
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    box-sizing: border-box;
    &:last-child {
      margin-bottom: 24px;
    }

     .hot {
       position: absolute;
       left: 0;
       top: 0;
       width: 73px;
       height: 73px;
     }
     .gotFlag {
       position: absolute;
       top: -12px;
       right: 141px;
       width: 112px;
       height: 105px;
     }
     .left {
       width: 211px;
       height: 100%;
       display: flex;
       align-items: center;
       .logo {
         margin: 0 30px 0 28px;
         width: 153px;
         height: 153px;
         border-radius: 8px;
       }
     }
     .middle {
       width: 288px;
       height: 100%;
       display: flex;
       flex-direction: column;
       z-index: 1;
       .title {
         margin-top: 30px;
         width: 100%;
        height: 40px;
        font-size: 28px;
        font-weight: bold;
        color: rgba(0, 0, 0, 0.85);
        line-height: 33px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
       }
       .condition {
         margin-top: 10px;
         width: 100%;
        height: 33px;
        font-size: 24px;
        font-weight: bold;
        color: #EF5721;
        line-height: 33px;
       }
       .useCon {
         margin-top: 10px;
        height: 28px;
        font-size: 20px;
        font-weight: 400;
        color: #999999;
        line-height: 28px;
       }
       .time {
         margin-top: 10px;
        height: 33px;
        font-size: 24px;
        font-weight: 400;
        color: rgba(0, 0, 0, 0.25);
        line-height: 33px;
       }
     }
     .right {
       width: 200px;
       height: 100%;
       display: flex;
       flex-direction: column;
       justify-content: center;
       align-items: center;
       z-index: 1;
       .less {
        height: 55px;
        font-size: 50px;
        font-weight: bold;
        display: flex;
        align-items: center;
        letter-spacing: -2px;
        .unit {
          height: 100%;
          display: flex;
          align-items: flex-end;
          font-size: 27px;
        }
       }
       .btn {
        margin-top: 10px;
        width: 140px;
        height: 50px;
        border-radius: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        font-weight: bold;
        color: #FFFFFF;
        &.stock {
          background: rgba(0, 0, 0, 0.25) !important;
        }
        &.has {
          background: unset !important;
          border: 1px solid #ff8d1b;
          border-radius: 27px;
        }
       }
     }
  }

  .end {
    width: 100%;
    height: 28px;
    margin: 6px 0 16px 0;
    display: flex;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.25);
    line-height: 28px;
  }

  .no-coupon-wrap {
    padding: 22px 35px 95px 33px;

    .no-coupon {
      padding: 152px 0 100px 0;
      display: flex;
      flex-direction: column;
      align-items: center;

      .empty-coupon {
        width: 450px;
        height: 260px;
      }

      .desc {
        margin-top: 42px;
        font-size: 32px;
        font-weight: bold;
        color: rgba(0, 0, 0, 0.85);
        line-height: 45px;
      }
    }

    .btn-bottom {
      width: 100%;
      height: 92px;

      .btn {
        background: rgba(255, 220, 38, 1);
        border-radius: 10px;
        font-size: 28px;
        font-weight: bold;
        color: rgba(0, 0, 0, 0.85);
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .btn.button-hover {
        background: rgba(255, 220, 38, 0.78);
      }

      .btn::after {
        border: none;
      }
    }
  }
}
